//
//  BSAddBtnModel.m
//  BaiSiBuDeJie
//
//  Created by 王位 on 8/22/16.
//  Copyright © 2016 tsaievan. All rights reserved.
//

#import "BSAddBtnModel.h"

@implementation BSAddBtnModel

+(instancetype)BSAddBtnModelWithDic:(NSDictionary *)dic
{
    BSAddBtnModel * btn = [BSAddBtnModel new];
    
    [btn setValuesForKeysWithDictionary:dic];
    
    return btn;
}


+(NSArray *)dataArr
{
    NSString * path = [[NSBundle mainBundle]pathForResource:@"BSAddBtn.plist" ofType:nil];
    
    NSArray * arr = [NSArray arrayWithContentsOfFile:path];
    
    NSMutableArray * arrM = [NSMutableArray arrayWithCapacity:arr.count];
    
    for (NSDictionary * dic in arr) {
        
        BSAddBtnModel * model = [BSAddBtnModel BSAddBtnModelWithDic:dic];
        
        [arrM addObject:model];
        
    }
    
    return arrM.copy;
}

@end
